package com.jy.adscm.operation.mscyb.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2019-09-10
 */
public class JqylMaterialdetailReback implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 不合格记录id
     */
    private Integer tid;
    @TableField(exist = false)
    private JqylMaterialdetail jqylMaterialdetail;
    /**
     * 处理人
     */
    private String creator;
    @TableField(exist = false)
    private String creatorName;
    /**
     * 处理时间
     */
    private Date createTime;
    /**
     * 处理结果 (1供应商已补货)
     */
    private Integer result;
    /**
     * 状态  0是未处理1是处理
     */
    private Integer state;

    public JqylMaterialdetail getJqylMaterialdetail() {
        return jqylMaterialdetail;
    }

    public void setJqylMaterialdetail(JqylMaterialdetail jqylMaterialdetail) {
        this.jqylMaterialdetail = jqylMaterialdetail;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getCreateTime() {
        return createTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getResult() {
        return result;
    }

    public void setResult(Integer result) {
        this.result = result;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "JqylMaterialdetailReback{" +
        "id=" + id +
        ", tid=" + tid +
        ", creator=" + creator +
        ", createTime=" + createTime +
        ", result=" + result +
        ", state=" + state +
        "}";
    }
}
